namespace Resharper.Abstractions.CodeDom.Expressions.PrimaryExpressions
{
  using JetBrains.Annotations;
  using JetBrains.ReSharper.Psi.CSharp.Tree;
  using Resharper.Abstractions.CodeDom.Expressions.LiteralExpressions;

  /// <summary>Defines the <see cref="LiteralExpression"/> class.</summary>
  public class PrimaryExpression : Expression
  {
    #region Constructors and Destructors

    /// <summary>Initializes a new instance of the <see cref="LiteralExpression"/> class.</summary>
    /// <param name="primaryExpression">The expression.</param>
    internal PrimaryExpression([NotNull] IPrimaryExpression primaryExpression) : base(primaryExpression)
    {
    }

    #endregion

    #region Properties

    /// <summary>The literal expression field.</summary>
    [NotNull]
    internal IPrimaryExpression InternalPrimaryExpression
    {
      get
      {
        return (IPrimaryExpression)this.InternalExpression;
      }
    }

    #endregion
  }
}